<template>
  <div>
     <van-nav-bar
      :title="title"
      left-arrow
      @click-left="onClickLeft"
     />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  },
  methods: {
    onClickLeft () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
.van-nav-bar {
  background-color: #000;
  position: fixed;
  z-index: 3;
  width: 100%;
  color: #fff;
  height: 1.5rem;
  line-height: 1.5rem;
  /deep/ .van-icon {
    font-size: 28PX;
    color: #fff;
  }
  /deep/ .van-nav-bar__title {
    color: #fff;
    font-size: 18PX;
  }
}
</style>
